<div id="album_menu">
  
  <?php if (isset($breadCrumbNav)) { ?>
  
  <div id="album_navigation">
    <ul>
      <li><a href="<?php echo WebRoot ?>userAlbums.php?idUser=<?php echo $requiredAlbum->User->idUser ?>"><?php echo $requiredAlbum->User->UserName ?></a></li>
      <?php 
        foreach($breadCrumbNav as $key => $value) {
          echo '<li><a href="'.WebRoot.'album.php?idAlbum='.$key.'">'.$value.'</a></li>';
        }
      ?>
      <li><strong><?php echo $requiredAlbum->Name ?></strong></li>
    </ul>
  </div>
  
  <?php } ?>
  
  
  <?php if ($isOwner) { ?>
  
  <div id="album_edit">

    <a title="<?php echo T_('Create new album') ?>" href="<?php echo WebRoot; ?>editAlbum.php<?php echo isset($requiredAlbum) ? '?parentAlbum='.$requiredAlbum->idAlbum : ''; ?>">
      <?php echo T_('Create Album'); ?>
    </a> 

  <?php if(isset($requiredAlbum)) { ?>
    &there4;          
    <a title="<?php echo T_('Change properties of album') ?>" href="<?php echo WebRoot; ?>editAlbum.php?album=<?php echo $requiredAlbum->idAlbum; ?>">
      <?php echo T_('Edit'); ?>
    </a>  
    &there4; <?php echo T_('Upload photos'); ?>    
    <form action="<?php echo WebRoot; ?>controllers/upload.php" method="post" id="file_upload" enctype="multipart/form-data">
      <div>
      <input type="hidden" name="idAlbum" id="idAlbum" value="<?php echo $requiredAlbum->idAlbum; ?>" />
      <input name="Filedata" type="file" />
      <input type="submit" name="uploadPhoto" value="<?php echo T_('Upload'); ?>" />  
      </div>
    </form>
  <?php } ?>        
    
  </div>
  
  <?php } elseif(isset($requiredAlbum)) { ?>
  
  <div id="album_favorites">
    <a href="<?php echo WebRoot ?>controllers/<?php echo $AlbumInFavoriteLink ?>AlbumFavorite.php?id=<?php echo $requiredAlbum->idAlbum ?>">
      <?php echo $AlbumInFavoriteText ?>
    </a>&there4;
    <a href="<?php echo WebRoot ?>controllers/<?php echo $UserInFavoriteLink ?>UserFavorite.php?id=<?php echo $requiredAlbum->idAlbum ?>">
      <?php echo $UserInFavoriteText ?>
    </a>   
  </div>
  
  <?php } ?>
  
  <div class="clear"></div>  
</div>
<div id="fileUploadQueue" style="display:none"></div>